home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q32018 < prev    next >
Text File  |  1988-07-21  |  1KB  |  56 lines

  1. Q32018 Internal Compiler Error: code.c 1.46, Line 456
  2. C Compiler
  3. 5.10
  4. MS-DOS
  5.  
  6. Summary:
  7.    The program below will cause the following error when compiled
  8. under compact and large memory models with loop and alias optimization
  9. (/Oal):
  10.  
  11.    test.c
  12.    test.c(25) : fatal error C1001: Internal Compiler Error
  13.       (compiler file '@(#)code.c:1.46', line 456)
  14.                    Contact Microsoft Technical Support
  15.  
  16.    The following is an example of a command line that will produce the
  17. internal compiler error:
  18.  
  19.    cl -c -AL -Oal test.c
  20.  
  21. More Information:
  22.    The program is as follows:
  23.  
  24. #include <stdio.h>
  25.    typedef struct BUFFER{
  26.    struct BUFFER *next;
  27.    int dummy;
  28.    } BUFFER
  29.  
  30.    extern BUFFER *curbp, *bheadp;
  31.  
  32.    BUFFER *foo_bar()
  33.    {
  34.    BUFFER *bufptr;
  35.    bufptr = curbp -> next;
  36.  
  37.    while(bufptr == NULL || bufptr -> dummy & 0xff)
  38.      {
  39.      if (bufptr == NULL)
  40.      bufptr = bheadp;
  41.    else
  42.      bufptr = bufptr -> next;
  43.  
  44.    if (burptr == curbp)
  45.       bufptr = NULL;
  46.    }
  47.  return(bufptr);
  48.  }
  49.  
  50.    Microsoft has confirmed this to be a problem in Version 5.10 of the
  51. C compiler. Microsoft is researching this problem and will post new
  52. information as it becomes available.
  53.  
  54. Keywords:  buglist5.10 qfbv
  55. Updated  88/07/21 03:19
  56.